package com.lucasx.util;

/**
 * Created by Administrator on 2016/10/7.
 * <p>
 * 数学工具类
 */
public class CalcUtil {

    /**
     * 模拟区间[min, max]内的值
     *
     * @param minNum
     * @param maxNum
     * @return
     */
    public static short randNum(double minNum, double maxNum) {
        return (short) (minNum + Math.random() * (maxNum - minNum) + 1);
    }
}
